#ifndef QUEUEMANANGER_H
#define QUEUEMANANGER_H

#include <QByteArray>
#include <QQueue>

class QueueMananger
{
public:
    virtual ~QueueMananger();
    QQueue<QByteArray> requestQueue;
    QQueue<QByteArray> responseQueue;

    void pushRequest( QByteArray& message );
    QByteArray popRequest();

    void pushResponse( QByteArray& message );
    QByteArray popResponse();

    static QueueMananger* get();
protected:
    QueueMananger();
private:
    static QueueMananger* instance;
};

#endif // QUEUEMANANGER_H
